package cn.gotom.pinggu.pojos;


import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import cn.gotom.core.pojos.BaseEntity;

/**
 * 
 * 数据查询比对表明细
 * 
 * @author peixere@qq.com
 * 
 * @version 2012-12-03
 * 
 */
@Entity
@Table()
public class Sjbdbmx extends BaseEntity implements Serializable
{
	private static final long serialVersionUID = 1L;

	/**
	 * 数据查询比对表
	 */
	@JoinColumn(name = "sjbdb_id", referencedColumnName = "id")
	@ManyToOne
	private Sjbdb sjbdb;

	/**
	 * 年
	 */
	@Column(length = 11)
	private int nd;

	/**
	 * 月份
	 */
	@Column(length = 11)
	private int yf;

	/**
	 * 应纳税额
	 */
	@Column()
	private float ynse;

	/**
	 * 入库金额
	 */
	@Column()
	private float rkje;

	/**
	 * 申报日期
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "sbrq", nullable = false)
	private Date sbrq = new Date();

	/**
	 * 本期销量
	 */
	@Column()
	private float bqxl;

	/**
	 * 平均销价
	 */
	@Column()
	private float pjxj;

	/**
	 * 本期销售总额
	 */
	@Column()
	private float bqxse;

	/**
	 * 测算方法
	 */
	@Column(name = "csff", length = 50)
	private CsffEnum csff;

	/**
	 * 偏差值
	 */
	@Column()
	private float pcz;

	/**
	 * 预警级别
	 */
	@JoinColumn(name = "yjjb_id", referencedColumnName = "id")
	@ManyToOne
	private Yjjb yjjb;

	public Sjbdb getSjbdb()
	{
		return sjbdb;
	}

	public void setSjbdb(Sjbdb sjbdb)
	{
		this.sjbdb = sjbdb;
	}

	public int getNd()
	{
		return nd;
	}

	public void setNd(int nd)
	{
		this.nd = nd;
	}

	public int getYf()
	{
		return yf;
	}

	public void setYf(int yf)
	{
		this.yf = yf;
	}

	public float getYnse()
	{
		return ynse;
	}

	public void setYnse(float ynse)
	{
		this.ynse = ynse;
	}

	public float getRkje()
	{
		return rkje;
	}

	public void setRkje(float rkje)
	{
		this.rkje = rkje;
	}

	public Date getSbrq()
	{
		return sbrq;
	}

	public void setSbrq(Date sbrq)
	{
		this.sbrq = sbrq;
	}

	public float getBqxl()
	{
		return bqxl;
	}

	public void setBqxl(float bqxl)
	{
		this.bqxl = bqxl;
	}

	public float getPjxj()
	{
		return pjxj;
	}

	public void setPjxj(float pjxj)
	{
		this.pjxj = pjxj;
	}

	public float getBqxse()
	{
		return bqxse;
	}

	public void setBqxse(float bqxse)
	{
		this.bqxse = bqxse;
	}

	public CsffEnum getCsff()
	{
		return csff;
	}

	public void setCsff(CsffEnum csff)
	{
		this.csff = csff;
	}

	public float getPcz()
	{
		return pcz;
	}

	public void setPcz(float pcz)
	{
		this.pcz = pcz;
	}

	public Yjjb getYjjb()
	{
		return yjjb;
	}

	public void setYjjb(Yjjb yjjb)
	{
		this.yjjb = yjjb;
	}
}